<template>
  <div class="welcome-container">
    <van-nav-bar title="欢迎">
      <template #right>
        <van-button type="primary" size="small" @click="handleLogout">退出</van-button>
      </template>
    </van-nav-bar>
    <div class="content">
      <h1>欢迎回来！</h1>
      <p>您已成功登录系统。</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'WelcomePage',
  methods: {
    handleLogout() {
      this.$router.push('/login');
    }
  }
};
</script>

<style scoped>
.welcome-container {
  padding: 20px;
}

.content {
  text-align: center;
  margin-top: 50px;
}
</style>